//
//  Extension+ UIImageView.swift
//  MyWeibo
//
//  Created by 黄勇锋 on 16/7/22.
//  Copyright © 2016年 黄勇锋. All rights reserved.
//

import UIKit
import SDWebImage

extension UIImageView{
    
    convenience init(imgName: String) {
        
        self.init(image:UIImage(named:imgName))
    }
    

    func hyf_setImage(urlString:String?,placeholderImgName:String){
        
       self.sd_setImageWithURL(NSURL(string: urlString ?? ""), placeholderImage: UIImage(named:placeholderImgName))
        
    }
}
